echo >"0:/user/wifimode.g" "M552 S2 ; Enable Access Point mode"

if !exists(param.R)
    M291 R"Do you want to restart WiFi module and switch mode now?" P" " S3
    M552 S0
    G4S1
    M589 S"22 IDEX" P"1234567890" I192.168.0.1
    G4S1
    M98 P"0:/user/wifimode.g"